package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <desc>
 *      设备服务地址信息表(用于设备服务地址变更时存储设备服务地址)
 * </desc>
 *
 * @createDate 2017/10/31
 */
@ItlTables("device_service_address_info")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
public class DeviceServiceAddressInfoPO extends BasePO implements Serializable{

    @ItlField("address")
    private String address;     //设备服务地址(地址由buildId或unitId以英文逗号拼接,buildId和unitId不混用)

    @ItlField("type")
    private String type;       //设备服务地址类型，buildId/unitId

    @ItlField("auth_user_id")
    private String authUserId;      //授权人Id

    @ItlField("process_state")
    private Integer processState;    //处理状态。0-待处理，1-已处理

    public DeviceServiceAddressInfoPO(String address, String type, String authUserId, Integer processState) {
        this.address = address;
        this.type = type;
        this.authUserId = authUserId;
        this.processState = processState;
    }
}
